<html>
<head><meta charset="utf-8"><title>mermaid support · t-compiler/wg-rustc-dev-guide · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/index.html">t-compiler/wg-rustc-dev-guide</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/topic/mermaid.20support.html">mermaid support</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="197341378"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/196385-t-compiler/wg-rustc-dev-guide/topic/mermaid%20support/near/197341378" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/topic/mermaid.20support.html#197341378">(May 12 2020 at 21:21)</a>:</h4>
<p>btw, not sure if this was done already or what, but it's really easy to integrate <a href="https://github.com/badboy/mdbook-mermaid">mermaid</a> for rendering graphs and other things, and I think we should totally do that. We could also integrate [mdbook-graphviz] although I don't like the approach that particular plugin takes. I think a better approach would be to use <a href="http://viz-js.com/">viz.js</a> to do the rendering in the client (and not require that graphviz is installed).</p>



<a name="197341446"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/196385-t-compiler/wg-rustc-dev-guide/topic/mermaid%20support/near/197341446" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/topic/mermaid.20support.html#197341446">(May 12 2020 at 21:22)</a>:</h4>
<p>See for example the <a href="https://rust-lang.github.io/chalk/book/">chalk book</a> for why this kind of thing is useful</p>



<a name="197341539"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/196385-t-compiler/wg-rustc-dev-guide/topic/mermaid%20support/near/197341539" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/topic/mermaid.20support.html#197341539">(May 12 2020 at 21:23)</a>:</h4>
<p><span class="user-mention" data-user-id="116009">@nikomatsakis</span> <a class="stream-topic" data-stream-id="196385" href="/#narrow/stream/196385-t-compiler.2Fwg-rustc-dev-guide/topic/integrate.20mermaid.20project.20into.20rustc-dev-guide">#t-compiler/wg-rustc-dev-guide &gt; integrate mermaid project into rustc-dev-guide</a></p>



<a name="197341559"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/196385-t-compiler/wg-rustc-dev-guide/topic/mermaid%20support/near/197341559" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/topic/mermaid.20support.html#197341559">(May 12 2020 at 21:23)</a>:</h4>
<p>lol ok</p>



<a name="197341584"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/196385-t-compiler/wg-rustc-dev-guide/topic/mermaid%20support/near/197341584" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/topic/mermaid.20support.html#197341584">(May 12 2020 at 21:23)</a>:</h4>
<p>I couldn't remember if I had brought it up before</p>



<a name="197341614"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/196385-t-compiler/wg-rustc-dev-guide/topic/mermaid%20support/near/197341614" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mark-i-m <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/topic/mermaid.20support.html#197341614">(May 12 2020 at 21:23)</a>:</h4>
<p>Yep, <span class="user-mention" data-user-id="262810">@Chris Simpkins</span> and <span class="user-mention" data-user-id="255061">@LeSeulArtichaut</span> had also done some great work on some diagrams before, but we didn't get around to polishing and merging them</p>



<a name="197341620"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/196385-t-compiler/wg-rustc-dev-guide/topic/mermaid%20support/near/197341620" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/topic/mermaid.20support.html#197341620">(May 12 2020 at 21:23)</a>:</h4>
<p>no worries, just wanted to point out that it was received with huge thumbs ups :)</p>



<a name="197342472"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/196385-t-compiler/wg-rustc-dev-guide/topic/mermaid%20support/near/197342472" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Chris Simpkins <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/topic/mermaid.20support.html#197342472">(May 12 2020 at 21:31)</a>:</h4>
<p><span class="user-mention silent" data-user-id="198054">mark-i-m</span> <a href="#narrow/stream/196385-t-compiler.2Fwg-rustc-dev-guide/topic/mermaid.20support/near/197341614">said</a>:</p>
<blockquote>
<p>Yep, <span class="user-mention silent" data-user-id="262810">Chris Simpkins</span> and <span class="user-mention silent" data-user-id="255061">LeSeulArtichaut</span> had also done some great work on some diagrams before, but we didn't get around to polishing and merging them</p>
</blockquote>
<p>They are still in a hackmd doc if we ever want to get back to the graphviz diagrams.  <a href="#narrow/stream/196385-t-compiler.2Fwg-rustc-dev-guide/topic/Proposal.3A.20New.20Rustc.20Guide.20Diagrams">https://rust-lang.zulipchat.com/#narrow/stream/196385-t-compiler.2Fwg-rustc-dev-guide/topic/Proposal.3A.20New.20Rustc.20Guide.20Diagrams</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>